import { RouteRecordRaw } from 'vue-router';

const router: RouteRecordRaw[] = [
  {
    path: '/individual',
    name: 'individual',
    redirect: { name: 'individualLayout' },
    component: () => import('@/layouts/LayoutFirst.vue'),
    children: [
      {
        path: '/individual/',
        name: 'individualLayout',
        redirect: { name: 'individualOrder' },
        component: () => import('@/layouts/LayoutSecond.vue'),
        children: [
          { path: '/individual/order', name: 'individualOrder', component: () => import('@/pages/individual/views/order.vue') },
          { path: '/individual/list', name: 'individualList', component: () => import('@/pages/individual/views/list.vue') },
          { path: '/individual/share', name: 'individualShare', component: () => import('@/pages/individual/views/share.vue') },
        ],
      },
    ],
  },
];

export default router;
